<div id="account">
	<?php if(!Login::CheckStatus()){ ?>
        <?php echo $message; ?>
        <div class="regorlog">
            <div class="loginFormCon">
                <h3><?php echo Language::Get('login',5); ?></h3>
                <p><?php echo Language::Get('login',6); ?></p>
                <div style="height:10px; font-size:0px;"></div>
                <?php include('includes/loginForm.inc.php'); ?>
            </div>
            <div class="registerFormCon">
                <h3><?php echo Language::Get('login',7); ?></h3>
                <p><?php echo Language::Get('login',8); ?></p>
                <div style="height:10px; font-size:0px;"></div>
                <?php include('includes/registerForm.inc.php'); ?>
            </div>
        </div>
        <?php }else{
            $sql = "SELECT * FROM CostBiterUsers WHERE EMail = '".$_SESSION['user']."'";
            $result = DB::query($sql);
            $fetch = DB::fetch($result);
        ?>
        <form action="#" method="post">
            <h2><?php echo Language::Get('account',0); ?></h2>
            <div>
                <div class="column1"><?php echo Language::Get('account',1); ?></div>
                <div class="column2"><input type="text" name="Firstname" value="<?php echo $fetch['Firstname']; ?>" /></div>
            </div>
            <div>
                <div class="column1"><?php echo Language::Get('account',2); ?></div>
                <div class="column2"><input type="text" name="Surname" value="<?php echo $fetch['Surname']; ?>" /></div>
            </div>
            <div>
                <div class="column1"><?php echo Language::Get('account',3); ?></div>
                <div class="column2"><textarea name="Address"><?php echo $fetch['Address']; ?></textarea></div>
            </div>
            <h2><?php echo Language::Get('account',4); ?></h2>
            <div>
                <div class="column1"><?php echo Language::Get('account',6); ?></div>
                <div class="column2"><input type="text" name="DeliveryName" value="<?php echo $fetch['DeliveryName']; ?>" /></div>
            </div>
            <div>
                <div class="column1"><?php echo Language::Get('account',5); ?></div>
                <div class="column2"><textarea name="DeliveryAddress"><?php echo $fetch['DeliveryAddress']; ?></textarea></div>
            </div>
            <input type="hidden" name="changedetails" value="changedetails" />
            <input type="submit" value="Save" />
        </form>
    <?php } ?>
</div>